home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / weapons / mp44.tik < prev    next >
Encoding:
Text File  |  2002-10-21  |  9.4 KB  |  346 lines

  1. TIKI
  2.  
  3. setup
  4. {
  5.     scale 0.52            // Set default scale to 16/30.5 since world is in 16 units per foot and model is in cm's
  6.     path models/weapons/mp44
  7.     skelmodel mp44.skd
  8.     surface mp441 shader mp44
  9.     surface mp442 shader mp44
  10.     surface mp44clip shader mp44clip
  11.     surface cock shader mp44
  12. }
  13. $define sounddir sound/weapons
  14.  
  15. init
  16. {
  17.     server
  18.     {
  19.  
  20.     //========================================//
  21.     //        WEAPON NAME          //
  22.     //========================================//
  23.  
  24.         classname        Weapon
  25.         weapontype        mg
  26. //        name            "MP44"
  27.         name            "StG 44"
  28.         rank            420 420
  29.  
  30.     //========================================//
  31.     //        WEAPON ACCURACY       //
  32.     //========================================//
  33.  
  34. //        StG 44 Sturmgewehr: Max Eff. Range is 300 yds with a muzzle velocity of 2125 ft/s. (7.92x33mm Kurz)
  35.  
  36.         sp bulletrange        4000         //the range at which bulletspread is applied
  37.     //    sp bulletspread        14 14 100 100    //minpitch minyaw maxpitch maxyaw
  38.         sp bulletspread        16 16 100 100    //minpitch minyaw maxpitch maxyaw
  39.     //    sp firespreadmult    0.40 0.61 200 0.6            //add falloff cap maxtime
  40.         sp firespreadmult    0.45 0.61 200 0.6            //add falloff cap maxtime
  41.  
  42.         dm bulletrange        4000
  43.         dm bulletspread        10 10 80 80            //11 11 54 54        //5th run 10 10 80 80     //4th run 10 10 100 100     //3rd run 10 10 95 95        //2nd run 10 10 100 100        //original 14 14 100 100
  44.         dm firespreadmult    0.475 0.5 200 0.8        //0.6 0.45 200 0.9    //0.55 0.45 200 0.9         //original 0.55 0.50 200 0.8     //add falloff cap maxtime
  45.  
  46.         realism bulletrange        4000
  47.         realism bulletspread        8 8 50 50            //11 11 54 54        //5th run 10 10 80 80     //4th run 10 10 100 100     //3rd run 10 10 95 95        //2nd run 10 10 100 100        //original 14 14 100 100
  48.         realism firespreadmult    0.475 0.5 200 0.8        //0.6 0.45 200 0.9    //0.55 0.45 200 0.9         //original 0.55 0.50 200 0.8     //add falloff cap maxtime
  49.  
  50.     //========================================//
  51.     //        DAMAGE / RATE OF FIRE      //
  52.     //========================================//
  53.  
  54.         sp bulletdamage        40        
  55.         dm bulletdamage        30            //30
  56.         realism bulletdamage    35            //30
  57.  
  58.         sp firedelay        0.086
  59.         dm firedelay        0.086
  60.         realism firedelay    0.086
  61.  
  62.  
  63.         realism throughwood        24
  64.         realism throughmetal        8
  65.  
  66.     //========================================//
  67.     //        PLAYER MOVEMENT          //
  68.     //========================================//
  69.  
  70.         sp movementspeed    0.9
  71.         dm movementspeed    0.85  //orig 0.76
  72.         realism movementspeed    0.85  //orig 0.76
  73.  
  74.     //========================================//
  75.     //        RIFLE BUTT / SECONDARY FIRE//
  76.     //========================================//
  77.  
  78.         secondary firetype        melee
  79.         secondary ammotype        none
  80.         secondary ammorequired        0
  81.         secondary meansofdeath        bash
  82.         secondary bulletknockback    50
  83.         secondary quiet
  84.  
  85.         sp secondary bulletrange    64
  86.         sp secondary bulletdamage    60
  87.  
  88.         dm secondary bulletrange    96
  89.         dm secondary bulletdamage    60
  90.  
  91.         realism secondary bulletrange    96
  92.         realism secondary bulletdamage    60
  93.  
  94.     //========================================//
  95.     //        AMMO              //
  96.     //========================================//
  97.  
  98.         firetype        bullet
  99.         ammotype        "mg"
  100.         meansofdeath    bullet
  101.         bulletcount        1
  102.         clipsize        30
  103.         ammorequired    1
  104.         bulletlarge        1
  105.  
  106.         sp startammo    30
  107.         dm startammo    150
  108.         sprealism startammo    30
  109.         dmrealism startammo    100
  110.  
  111.         // Additional DM Loadout
  112.         dm additionalstartammo "grenade" 2
  113.         dm additionalstartammo "smokegrenade" 1
  114.         dm startitem "items/binoculars.tik"
  115.  
  116.         // Additional DM Realism Loadout
  117.         dmrealism additionalstartammo "grenade" 2
  118.         dmrealism additionalstartammo "smokegrenade" 1
  119.         dmrealism startitem "items/binoculars.tik"
  120.  
  121.     //========================================//
  122.     //        CROSSHAIR, ZOOM, TRACERS  //
  123.     //========================================//
  124.  
  125.         sp tracerfrequency     2  //original 0
  126.         dm tracerfrequency     0
  127.         sprealism tracerfrequency     2  //original 0
  128.         dmrealism tracerfrequency     0
  129.  
  130.         crosshair        1
  131.  
  132.     //========================================//
  133.     //        SOUND, AI, OTHER      //
  134.     //========================================//
  135.  
  136.         pickupsound        mp44_snd_pickup
  137.         ammopickupsound    mp44_snd_pickup_ammo
  138.         noammosound        mp44_snd_noammo
  139.  
  140.         // Holstering info
  141. //        holstertag        "Bip01 Spine2"
  142. //        holsteroffset    "8.0 -7.75 6.5"
  143. //        holsterangles    "0 185 -25"
  144. //        holsterScale    1.0
  145.  
  146.         // AI animation group info
  147.         weapongroup        mp44
  148.         airange            short
  149.  
  150.         // this is attached to the player during reload
  151.         cache models/ammo/mp44_clip.tik
  152.     }
  153.     client
  154.     {
  155.         cache tracer.spr
  156.         cache muzsprite.spr
  157.         cache corona_util.spr
  158.         cache models/fx/muzflash.tik
  159.         cache models/ammo/rifleshell.tik
  160.     }
  161. }
  162.  
  163. animations
  164. {
  165.     idle    mp44.skc
  166.     reload    mp44_reload.skc
  167.     {
  168.         server
  169.         {
  170.             13 surface mp44clip +nodraw
  171.             42 surface mp44clip -nodraw
  172.             last idle
  173.         }
  174.         client
  175.         {
  176.             entry sound mp44_snd_reload item
  177.         }
  178.     }
  179.     secondaryfire     mp44.skc
  180.     {
  181.         server
  182.         {
  183.             entry shoot secondary
  184.         }
  185.     }
  186.     fire    mp44_fire.skc
  187.     {
  188.         server
  189.         {
  190.             entry shoot
  191.         }
  192.         client
  193.         {
  194.             entry stopaliaschannel mp44_snd_fire
  195.             entry sound mp44_snd_fire
  196.  
  197.             // By now, the server has already fired the weapon, so it's
  198.             // ok to apply the view kick apon entry to avoid problems
  199.             // with multiple application on single frame animations.
  200.  
  201.             ////////////////////////////////////////////////////////////////////////////////////////
  202.             // View Kicking
  203.             //
  204.             // View Kicking works based on the assumptions that every weapon has its own tendencies to kick in
  205.             // a paticular fashion. In MOH we call then scatter patterns. Currently we have 2 scatter patterns which
  206.             // will be explained.
  207.             // Scatter Patterns:
  208.             // "V" - the cone. The longer you shoot the more random your shots will be in the horizontal axis.
  209.             // "T" - the T shape. The gun has a tendancy to push in a paticular direction.
  210.             //
  211.             //
  212.             //                     +-------------------------------------------- Scatter Pitch Min
  213.             //                      |    +--------------------------------------- Scatter Pitch Max
  214.             //                      |    |       +------------------------------- Scatter Yaw Min
  215.             //                     |    |       |   +--------------------------- Scatter Yaw Max
  216.             //                     |    |       |   |     +--------------------- The Recentering speed in fraction per second
  217.             //                      |    |       |   |     |    +---------------- The Scatter Pattern
  218.             //                      |    |       |   |     |    |     +---------- The absolute pitch min/max
  219.             //                      |    |       |   |     |    |     |  +------- The absolute yaw min/max
  220.             //                      |    |       |   |     |    |     |  | +----- This is the pitch at which you loose all
  221.             //                      |    |       |   |     |    |     |  | |      control of the weapon and its behavior is
  222.             //                      |    |       |   |     |    |     |  | |      purely random.
  223.             //                V    V       V   V     V    V     V  V V
  224.             entry viewkick         -1.8 -1.8    -0.2 0.05   3.2  "T"   12 0.2 2.2
  225.  
  226. //            entry viewkick         -2.0 -2.0    -0.2 0.05   2.8  "T"   12 0.2 2.2 (new original setting, use this to revert)
  227. //            entry viewkick         -1.2 -1.2    -0.2  0.2   1   "V"   3.0 1.0 1.6 (Colt .45 Pistol)
  228. //            entry viewkick         -3.0 -3.5    -0.9 0.9 (original setting)
  229.  
  230.             // muzzle flash
  231.             entry tagdlight tag_barrel 0.25 0.2 0.15 150 0.11
  232.             entry tagspawnlinked tag_barrel
  233.             (
  234.                 count 1
  235.                 model models/fx/muzflash.tik
  236.                 color 1.00 1.00 1.00
  237.                 scale 0.60
  238.                 life 0.05
  239.                 offsetalongaxis -3 0 0 //orig -5 0 0
  240.                 fade
  241.                 randomroll
  242.             )
  243.  
  244.             entry tagspawnlinked tag_barrel
  245.             (
  246.                 count 1
  247.                 model muzsprite.spr
  248.                 alpha 0.70
  249.                 color 1.00 1.00 1.00
  250.                 scale 0.60
  251.                 life 0.05
  252.                 offsetalongaxis 1 0 0 //orig 3 0 0
  253.                 fade
  254.                 randomroll
  255.             )
  256.  
  257.             entry tagspawnlinked tag_barrel
  258.             (
  259.                 count 1
  260.                 model corona_util.spr
  261.                 color 1.00 1.00 1.00
  262.                 scale 0.10
  263.                 life 0.05
  264.                 scalerate 11.00
  265.                 fade
  266.                 randomroll
  267.             )
  268.  
  269.             entry commanddelay 0.01 tagspawn tag_eject
  270.             (
  271.                 //count 1 //orig 2
  272.                 spawnrate 1
  273.                 model vsssource.spr
  274.                 alpha 0.30
  275.                 color 0.50 0.50 0.50
  276.                 spritegridlighting
  277.                 scale 0.10
  278.                 life 0.30 /orig 1.00
  279.                 scalerate 10.00
  280.                 velocity 60.00
  281.                 randvel range 20 -60 crandom -40 range 20 -60
  282.                 friction 5.00
  283.                 fade
  284.                 randomroll
  285.             )
  286.  
  287.             entry tagspawn tag_barrel
  288.             (
  289.                 //count 1 //orig 2
  290.                 spawnrate 1.00
  291.                 model vsssource.spr
  292.                 alpha 0.40
  293.                 color .70 .70 .70
  294.                 spritegridlighting
  295.                 scale 0.45
  296.                 life 0.20 //orig 2.00
  297.                 scalerate 10.00
  298.                 velocity 200.00 //orig 60.00
  299.                 //randvel range 20 -60 crandom -40 range 20 -60
  300.                 offsetalongaxis 10 0 0
  301.                 friction 6.00 //orig 5.00
  302.                 fade
  303.                 randomroll
  304.             )
  305.  
  306.             //excessive gun effects removed due to framerate issues
  307. //            entry tagspawn tag_barrel
  308. //            (
  309. //                model models/fx/bh_metal_fastpiece.tik
  310. //                color 1.00 1.00 1.00
  311. //                life 0.07
  312. //                scalerate 1.00
  313. //                velocity 1000.00
  314. //                friction 3.00
  315. //                offsetalongaxis -20 0 0
  316. //                fade
  317. //                alignstretch 0.03
  318. //            )
  319.  
  320.             // shell eject
  321.             entry commanddelay 0.1 tagspawn tag_eject
  322.             (
  323.                 spawnrange 2048
  324.                 count 1
  325.                 model models/ammo/rifleshell.tik
  326.                 scale 1.0
  327.                 velocity 50
  328.                 randvel crandom 10 crandom 10 random 20
  329.                 emitterangles 0 0 0
  330.                 avelocity crandom 90 crandom 90 0
  331.                 accel 0 0 -800
  332.                 physicsrate 20
  333.                 life 2.0
  334.                 fadedelay 1.7
  335.                 collision
  336.                 bouncefactor 0.2
  337.                 bouncesoundonce snd_rifle_shell
  338.             )
  339.  
  340.         }
  341.     }
  342. }
  343.  
  344. /*QUAKED addon_playerweapon_german_mp44 (0.0 0.0 1.0) (-8 -8 -8) (8 8 8)
  345. german submachinegun - mp44
  346. */